package com.itqf.springboot_mvc.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * projectName: springboot_part
 *
 * @author: 赵伟风
 * time: 2021/9/17 14:18
 * description:
 */
@RestController
@RequestMapping("product")
public class ProductController {

    @GetMapping("show")
    public Object show(String key,
                       @RequestParam(defaultValue = "1") int page,
                       @RequestParam(defaultValue = "6") int pageSize){

        System.out.println("key = " + key + ", page = " + page + ", pageSize = " + pageSize);

        return "key = " + key + ", page = " + page + ", pageSize = " + pageSize;
    }

}
